import com.macro.HelloWorld;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class HelloWorldTest {
    @Test
    public void test(){
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("beans.xml");
        HelloWorld obj = (HelloWorld) ac.getBean("helloWorld");
        obj.sayHello();
    }

}
